#include "..\System.h"

//+ boxing/unboxing
internal System_Object *___boxint_(int_ value)
{
	System_Int32 *box = new(,System_Int32);
	box->m_value = value;
	return (System_Object *)box;
}

internal int_ ___unboxint_(System_Object *value)
{
	return ((System_Int32 *)value)->m_value;
}

//+ type
Implement_Type(System_Int32,System_Object,)
Implement_DefaultCtor(System_Int32,System_Object)
System_Type _int_Type = { (__typeCtor)null, L"int_", (__typeBoxer)&___boxint_, (__typeUnboxer)&___unboxint_, (char*)default(int_), _TypeFlags_Value };
Declare_System(System_Int32, int_)
Implement_System(System_Int32, int_)
